﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000197 RID: 407
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CellInfo : IMessage<CellInfo>, IMessage, IEquatable<CellInfo>, IDeepCloneable<CellInfo>, IBufferMessage
	{
		// Token: 0x17000556 RID: 1366
		// (get) Token: 0x06001249 RID: 4681 RVA: 0x0003482B File Offset: 0x00032A2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CellInfo> Parser
		{
			get
			{
				return CellInfo._parser;
			}
		}

		// Token: 0x17000557 RID: 1367
		// (get) Token: 0x0600124A RID: 4682 RVA: 0x00034832 File Offset: 0x00032A32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CellInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000558 RID: 1368
		// (get) Token: 0x0600124B RID: 4683 RVA: 0x00034844 File Offset: 0x00032A44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CellInfo.Descriptor;
			}
		}

		// Token: 0x0600124C RID: 4684 RVA: 0x0003484B File Offset: 0x00032A4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellInfo()
		{
		}

		// Token: 0x0600124D RID: 4685 RVA: 0x00034860 File Offset: 0x00032A60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellInfo(CellInfo other) : this()
		{
			this.pENJHINGIGC_ = other.pENJHINGIGC_;
			this.fHBPLGNBCBG_ = other.fHBPLGNBCBG_;
			this.mKPFFLFMIHJ_ = other.mKPFFLFMIHJ_;
			this.cellList_ = other.cellList_.Clone();
			this.dCBAGJMCHEB_ = other.dCBAGJMCHEB_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600124E RID: 4686 RVA: 0x000348C5 File Offset: 0x00032AC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellInfo Clone()
		{
			return new CellInfo(this);
		}

		// Token: 0x17000559 RID: 1369
		// (get) Token: 0x0600124F RID: 4687 RVA: 0x000348CD File Offset: 0x00032ACD
		// (set) Token: 0x06001250 RID: 4688 RVA: 0x000348D5 File Offset: 0x00032AD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PENJHINGIGC
		{
			get
			{
				return this.pENJHINGIGC_;
			}
			set
			{
				this.pENJHINGIGC_ = value;
			}
		}

		// Token: 0x1700055A RID: 1370
		// (get) Token: 0x06001251 RID: 4689 RVA: 0x000348DE File Offset: 0x00032ADE
		// (set) Token: 0x06001252 RID: 4690 RVA: 0x000348E6 File Offset: 0x00032AE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FHBPLGNBCBG
		{
			get
			{
				return this.fHBPLGNBCBG_;
			}
			set
			{
				this.fHBPLGNBCBG_ = value;
			}
		}

		// Token: 0x1700055B RID: 1371
		// (get) Token: 0x06001253 RID: 4691 RVA: 0x000348EF File Offset: 0x00032AEF
		// (set) Token: 0x06001254 RID: 4692 RVA: 0x000348F7 File Offset: 0x00032AF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MKPFFLFMIHJ
		{
			get
			{
				return this.mKPFFLFMIHJ_;
			}
			set
			{
				this.mKPFFLFMIHJ_ = value;
			}
		}

		// Token: 0x1700055C RID: 1372
		// (get) Token: 0x06001255 RID: 4693 RVA: 0x00034900 File Offset: 0x00032B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChessRogueCell> CellList
		{
			get
			{
				return this.cellList_;
			}
		}

		// Token: 0x1700055D RID: 1373
		// (get) Token: 0x06001256 RID: 4694 RVA: 0x00034908 File Offset: 0x00032B08
		// (set) Token: 0x06001257 RID: 4695 RVA: 0x00034910 File Offset: 0x00032B10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DCBAGJMCHEB
		{
			get
			{
				return this.dCBAGJMCHEB_;
			}
			set
			{
				this.dCBAGJMCHEB_ = value;
			}
		}

		// Token: 0x06001258 RID: 4696 RVA: 0x00034919 File Offset: 0x00032B19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CellInfo);
		}

		// Token: 0x06001259 RID: 4697 RVA: 0x00034928 File Offset: 0x00032B28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CellInfo other)
		{
			return other != null && (other == this || (this.PENJHINGIGC == other.PENJHINGIGC && this.FHBPLGNBCBG == other.FHBPLGNBCBG && this.MKPFFLFMIHJ == other.MKPFFLFMIHJ && this.cellList_.Equals(other.cellList_) && this.DCBAGJMCHEB == other.DCBAGJMCHEB && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600125A RID: 4698 RVA: 0x000349A8 File Offset: 0x00032BA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PENJHINGIGC != 0U)
			{
				num ^= this.PENJHINGIGC.GetHashCode();
			}
			if (this.FHBPLGNBCBG != 0U)
			{
				num ^= this.FHBPLGNBCBG.GetHashCode();
			}
			if (this.MKPFFLFMIHJ != 0U)
			{
				num ^= this.MKPFFLFMIHJ.GetHashCode();
			}
			num ^= this.cellList_.GetHashCode();
			if (this.DCBAGJMCHEB != 0U)
			{
				num ^= this.DCBAGJMCHEB.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600125B RID: 4699 RVA: 0x00034A40 File Offset: 0x00032C40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600125C RID: 4700 RVA: 0x00034A48 File Offset: 0x00032C48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600125D RID: 4701 RVA: 0x00034A54 File Offset: 0x00032C54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MKPFFLFMIHJ != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.MKPFFLFMIHJ);
			}
			if (this.DCBAGJMCHEB != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.DCBAGJMCHEB);
			}
			this.cellList_.WriteTo(ref output, CellInfo._repeated_cellList_codec);
			if (this.PENJHINGIGC != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.PENJHINGIGC);
			}
			if (this.FHBPLGNBCBG != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.FHBPLGNBCBG);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600125E RID: 4702 RVA: 0x00034AF8 File Offset: 0x00032CF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PENJHINGIGC != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PENJHINGIGC);
			}
			if (this.FHBPLGNBCBG != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FHBPLGNBCBG);
			}
			if (this.MKPFFLFMIHJ != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MKPFFLFMIHJ);
			}
			num += this.cellList_.CalculateSize(CellInfo._repeated_cellList_codec);
			if (this.DCBAGJMCHEB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DCBAGJMCHEB);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600125F RID: 4703 RVA: 0x00034B94 File Offset: 0x00032D94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CellInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PENJHINGIGC != 0U)
			{
				this.PENJHINGIGC = other.PENJHINGIGC;
			}
			if (other.FHBPLGNBCBG != 0U)
			{
				this.FHBPLGNBCBG = other.FHBPLGNBCBG;
			}
			if (other.MKPFFLFMIHJ != 0U)
			{
				this.MKPFFLFMIHJ = other.MKPFFLFMIHJ;
			}
			this.cellList_.Add(other.cellList_);
			if (other.DCBAGJMCHEB != 0U)
			{
				this.DCBAGJMCHEB = other.DCBAGJMCHEB;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001260 RID: 4704 RVA: 0x00034C1D File Offset: 0x00032E1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001261 RID: 4705 RVA: 0x00034C28 File Offset: 0x00032E28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 32U)
					{
						this.MKPFFLFMIHJ = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						this.DCBAGJMCHEB = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 50U)
					{
						this.cellList_.AddEntriesFrom(ref input, CellInfo._repeated_cellList_codec);
						continue;
					}
					if (num == 88U)
					{
						this.PENJHINGIGC = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.FHBPLGNBCBG = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000790 RID: 1936
		private static readonly MessageParser<CellInfo> _parser = new MessageParser<CellInfo>(() => new CellInfo());

		// Token: 0x04000791 RID: 1937
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000792 RID: 1938
		public const int PENJHINGIGCFieldNumber = 11;

		// Token: 0x04000793 RID: 1939
		private uint pENJHINGIGC_;

		// Token: 0x04000794 RID: 1940
		public const int FHBPLGNBCBGFieldNumber = 12;

		// Token: 0x04000795 RID: 1941
		private uint fHBPLGNBCBG_;

		// Token: 0x04000796 RID: 1942
		public const int MKPFFLFMIHJFieldNumber = 4;

		// Token: 0x04000797 RID: 1943
		private uint mKPFFLFMIHJ_;

		// Token: 0x04000798 RID: 1944
		public const int CellListFieldNumber = 6;

		// Token: 0x04000799 RID: 1945
		private static readonly FieldCodec<ChessRogueCell> _repeated_cellList_codec = FieldCodec.ForMessage<ChessRogueCell>(50U, ChessRogueCell.Parser);

		// Token: 0x0400079A RID: 1946
		private readonly RepeatedField<ChessRogueCell> cellList_ = new RepeatedField<ChessRogueCell>();

		// Token: 0x0400079B RID: 1947
		public const int DCBAGJMCHEBFieldNumber = 5;

		// Token: 0x0400079C RID: 1948
		private uint dCBAGJMCHEB_;
	}
}
